package com.ld.wms.business.locker.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ld.wms.business.locker.model.LockerModel;
import com.ld.wms.business.locker.vo.req.LockerExtReqVo;
import com.ld.wms.business.locker.vo.req.LockerReqVo;
import com.ld.wms.business.locker.vo.resp.LockerExtRespVo;
import com.ld.wms.business.locker.vo.resp.LockerRespVo;
import com.ld.wms.common.vo.GeneratePageListVo;

/**
 * <p>
 * 智能柜表 服务类
 * </p>
 *
 * @author wangfeng
 * @since 2025-03-28
 */
public interface LockerService extends IService<LockerModel> {


    /**
     * 分页查询样品柜
     * @param current
     * @param size
     * @return
     */
    GeneratePageListVo<LockerRespVo> getPageList(Integer current, Integer size);

    /**
     * 添加样品柜信息
     * @param reqVo
     */
    void add(LockerReqVo reqVo);

    /**
     * 修改样品柜信息
     * @param reqVo
     */
    void updateById(LockerReqVo reqVo);

    /**
     * 获取样品柜详情信息
     * @param id
     * @return
     */
    LockerRespVo getDetails(Long id);

    /**
     * 删除样品柜信息
     * @param id
     */
    void delete(Long id);

    /**
     * 根据code获取柜子信息
     * @param code
     * @return
     */
    LockerExtRespVo getLockerExtByCode(String code);

    /**
     * 柜体设置
     * @param reqVo
     */
    void configLockerExt(LockerExtReqVo reqVo);
}
